package com.mcf.xiaolinju.mapper;

import com.mcf.xiaolinju.entity.Dynamic;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.mcf.xiaolinju.vo.DynamicVO;
import com.mcf.xiaolinju.vo.DynamicbasicVO;

import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author mcf
 * @since 2022-02-20
 */
public interface DynamicMapper extends BaseMapper<Dynamic> {

    int addapi(String content, int createid, String pictureurl, int communityid, LocalDateTime ldt);

    List<DynamicbasicVO> selectallDynamic(int id);
    DynamicbasicVO selectoneDynamic(int id,int keyid);


    Integer addpraisecount (int id);

    Integer subpraisecount  (int id);

    Integer addreviewcount(int id);

}
